package cn.tedu.egmvcboot.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
@Data
public class UserArticleDTO {
    @ApiModelProperty(value = "文章标题",required = true,example = "星期三")
    @NotBlank(message = "标题不能为空")
    @Size(min = 1,max = 20,message = "标题为长度为1-20字")
    private String title;

    @ApiModelProperty(value = "文章内容",required = true,example = "一二三四五,武松打老虎")
    @NotBlank(message = "内容不能为空")
    private String content;
}
